<template>
  <div class="choose">
    <img :src="imgPath" alt="" />
    <p>{{ title }}</p>
  </div>
</template>

<script>
export default {
  props: {
    title: {
      default: "",
      type: String,
    },
    imgPath: {
      default: require("./images/car.png"),
      type: String,
    },
  },
};
</script>

<style lang="less" scoped>
.choose {
  width: 160px;
  height: 160px;
  background: rgba(255, 255, 255, 0.5);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  border-radius: 20px;
  box-shadow: black 5px 5px 10px;
  &:active {
    transform: scale(0.9);
  }
  p {
    margin: 0;
    padding: 0;
    text-align: center;
    font-size: 24px;
  }
  img {
    width: 80%;
  }
}
</style>